<template>
	<Row :gutter="16">
		<ICol span="19"><IInput  placeholder="权限路径" v-model="searchParam.name" clearable @on-enter="search" ></IInput></ICol>
		<ICol span="5" ><IButton type="primary" @click="search">搜索</IButton></ICol>
	</Row>
</template>
<script>
import {Row,Col,Input,Button} from 'iview';

export default{
    props:{
        callback:{ type : Function}
    },
	components:{
		Row,
        'ICol':Col,
        'IInput' : Input,
        'IButton' : Button,
    },
    data () {
        return {
        	searchParam :{
        		name : ''
        	},
        }
    },
    methods: {
    	search(){
            this.callback(this.searchParam);
    	}
    }

}
</script>